﻿@model IList<WAMM.WebUI.Models.PersonWebUIModel>

@{
	View.Title = "Index";
}

	<h2>Index</h2>

		<table>
		<tr>
			<th></th>
			<th>
				First Name
			</th>
			<th>
				Last Name
			</th>
			<th>
				Gender
			</th>
		</tr>
	@foreach (var item in Model) { 
		<tr>
			<td>
				@Html.ActionLink("Edit", MVC.Person.Edit(item.Id.Value)) |
				@Html.ActionLink("Details", MVC.Person.Details(item.Id.Value)) |
				@Html.ActionLink("Delete", MVC.Person.Delete(item.Id.Value))
			</td>
			<td>
				@item.FirstName
			</td>
			<td>
				@item.LastName
			</td>
			<td>
				@item.Gender
			</td>
		</tr>
	}

	</table>

	<p>
		Count: @Model.Count
	</p>

	<p>
		@Html.ActionLink("Create New", MVC.Person.Create())
	</p>


